﻿namespace System.Web
{
    internal class CharBufferAllocator : BufferAllocator
    {
        private int _bufferSize;

        internal CharBufferAllocator(int bufferSize, int maxFree)
            : base(maxFree) { _bufferSize = bufferSize; }

        protected override object AllocBuffer()
        {
            return new char[_bufferSize];
        }
    }
}
